/*
 * Libraries for J2ME (Java mobile) portable devices such as cellular phones.
 * Copyright (c) 2005-2006, Moshe Waisberg. All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Contributors can be contacted by electronic mail via the project Web pages:
 * 
 * https://sourceforge.net/projects/j2melib
 * 
 * http://j2melib.sourceforge.net
 * 
 */
package games;

/**
 * Matrix event for a cell.
 * 
 * @author Moshe Waisberg
 */
public class MatrixEvent {

    private int row;
    private int col;
    private short state;
    /////////////////private GameBoard board;

    /**
     * Constructs a new event.
     * 
     * @param board
     *            the game board.
     * @param row
     *            the cell row.
     * @param col
     *            the cell column.
     * @param state
     *            the cell state.
     */
    public MatrixEvent(/*GameBoard board, */int row, int col, short state) {
        super();
        //this.board = board; ////todo
        this.row = row;
        this.col = col;
        this.state = state;
    }

    /**
     * Get the cell row.
     * 
     * @return the row.
     */
    public int getRow() {
        return this.row;
    }

    /**
     * Get the cell column.
     * 
     * @return the column.
     */
    public int getColumn() {
        return this.col;
    }

    /**
     * Get the cell state.
     * 
     * @return the state.
     */
    public short getState() {
        return this.state;
    }

    /**
     * Get the source game board.
     * 
     * @return the board.
     */
    /*public GameBoard getSource() {
        return this.board;
    }*/ //////todo
}
